XmlMessageFormatter Constructor(Type[])
Initializes a new instance of the XmlMessageFormatter class, setting target types passed in as an array of object types.
Syntax
'Declaration Public Function New( _ ByVal targetTypes() As Type _ )
'Usage Dim targetTypes() As Type Dim instance As New XmlMessageFormatter(targetTypes)
public XmlMessageFormatter( Type[] targetTypes )
public: XmlMessageFormatter( array<Type^>^ targetTypes )
Parameters
- targetTypes
- An array of type System.Type that specifies the set of possible types that will be deserialized by the formatter from the message provided.
Exceptions
Exception | Description |
---|---|
System.ArgumentNullException | The targetTypes parameter is null. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also